import request from '@/utils/request'

// 查询实验列表
export function listExp(query) {
  return request({
    url: '/system/exp/list',
    method: 'get',
    params: query
  })
}

// 查询实验详细
export function getExp(id) {
  return request({
    url: '/system/exp/' + id,
    method: 'get'
  })
}

// 新增实验
export function addExp(data) {
  return request({
    url: '/system/exp',
    method: 'post',
    data: data
  })
}

// 修改实验
export function updateExp(data) {
  return request({
    url: '/system/exp',
    method: 'put',
    data: data
  })
}

// 删除实验
export function delExp(id) {
  return request({
    url: '/system/exp/' + id,
    method: 'delete'
  })
}

//获取所有实验
export function getallExp() {
  return request({
    url: 'wx/getExpAll',
    method: 'get'
  })
}
